home *** CD-ROM | disk | FTP | other *** search
- Path: prodigy.com!usenet
- From: FBRZ55A@prodigy.com (Paul Emge)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ problem with constructor.
- Date: 18 Mar 1996 11:09:40 GMT
- Organization: Prodigy Services Company 1-800-PRODIGY
- Distribution: world
- Message-ID: <4ijg9k$1g2o@usenetp1.news.prodigy.com>
- References: <dogggp.muy@latcs1.lat.oz.au>
- NNTP-Posting-Host: innugap2-int.news.prodigy.com
- X-Newsreader: Version 1.2
-
- The constructors in your object never allocate any memory for the street
- and city strings, just pointers. So when you use strcpy you are
- overriding memory.
- Hope this helps..
-
-
-